//
//  HoroRequest.h
//  SubscribeBase
//
//  Created by changshuai on 2018/7/14.
//  Copyright © 2018年 changshuai. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^CCDoneBlock)(id result);
typedef void (^CCErrorBlock)(NSError *error);
typedef void (^CCProgressBlock)(double progress);

@interface HoroRequest : NSObject
/*
 today,tomorrow,week,nextweek,month,year
 */
+(void)GetAppInfoCompletion:(CCDoneBlock)onCompletion
                      onError:(CCErrorBlock)onError;
+ (void) getData:(NSString*)name withType:(NSString*)type onCompletion:(CCDoneBlock)onCompletion
onError:(CCErrorBlock)onError;
+ (void) getData:(NSString*)name withDate:(NSString*)date onCompletion:(CCDoneBlock)onCompletion
         onError:(CCErrorBlock)onError;

+ (void) getEnglishFromChinese :(NSString*)chinese onCompletion:(CCDoneBlock)onCompletion
                        onError:(CCErrorBlock)onError;
@end
